package base.utils;

public class Utils16 {

    public static int getHeight4(int data){//获取高四位
        int height;
        height = ((data & 0xf0) >> 4);
        return height;
    }

    public static int getLow4(byte data){//获取低四位
        int low;
        low = (data & 0x0f);
        return low;
    }

    public static byte hex2Byte(String data) {
        return (byte) Integer.parseInt(data);
    }



}
